export function debunce (fn:Function,delay:number){
    let timer =null
    return function (...args:any[]){
         
        timer = setTimeout(()=>{
            fn.apply(this,args) 
        },delay)
    }

}